package com.ycl.plus.lm.hardware.domain.vo;

import com.ycl.plus.lm.hardware.domain.HardwareSensor;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ycl.plus.lm.common.excel.annotation.ExcelDictFormat;
import com.ycl.plus.lm.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 传感器视图对象 hardware_sensor
 *
 * @author devil-ycl
 * @date 2024-11-07
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HardwareSensor.class)
public class HardwareSensorVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 父id
     */
    @ExcelProperty(value = "父id")
    private Long parentId;

    /**
     * 传感器类型
     */
    @ExcelProperty(value = "传感器类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hardware_sensor_type")
    private String type;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hardware_sensor_status")
    private String status;


}
